<%@ page contentType="text/html; charset=utf-8" language="java" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!-- 王奇 -->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" href="css/Login.css" />
		<link rel="stylesheet" href="css/gh-buttons.css">
		<script type="text/javascript">
		function reloadCode(){//刷新验证码
			var time = new Date().getTime();
			document.getElementById("imagecode").src= "ImageServlet?d="+time;
		}
		
	</script>
		<title>
		</title>
	</head>
	<body>
	
		<div id="all">
		 <form id="login" action="userServlet?action=login" method="post">
			<table>
				<tr>
				   <td>用户名:</td>
				   <td><input type="text" name="name" required="required"/></td>
				   <td></td>
				</tr>
				<tr style="margin-top: 20px;">
					<td>密码:</td>
					<td><input type="password" name="password"  required="required"/></td><td></td>
				</tr>
			    <tr>
			    	<td>验证码:</td>
			    	<td><input type="text" name="checkcode" id="checkcode" required="required"/></td>
                    <td id="code"><img alt="验证码" id="imagecode" src="ImageServlet"/>
                    <a href="javascript: reloadCode();">看不清楚</a></td>                   

			    </tr>
				<tr>
					<td></td><td style="float: left;"><input type="checkbox"  id="chk" name="isUserCookie" />自动登录&nbsp;<a href="AdminLogin.jsp">管理员登录->></a></td>
				</tr>
				<tr>
					<td></td><td id="msg">${msg }</td>
				</tr>
				<tr>
					<td><input type="submit" class="button big" onclick=""></td><td><a href="user/register.jsp"><input type="button" class="button big" value="注册"></a></td>
				</tr>
				
			</table>
			
		</form>
		</div>
	</body>
</html>
    